#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_2_clicked()
{
    l = new login;
    this->hide();
    l->show();

    connect(l, SIGNAL(clicked()), this, SLOT(show()));
}

void Widget::on_pushButton_clicked()
{
    v = new videodisplay;
    this->close();
    v->show();
}
